{extend name='layouts/app'/}
{block name='content'}
<ul class="breadcrumb no-border no-radius b-b b-light pull-in">
<li><a href="{:url('admin/index/index')}"><i class="fa fa-home"></i> 主页</a></li>
<li class="active">论文管理</li>
</ul>
<div class="m-b-md">
    <h3 class="m-b-none">论文列表</h3>
</div>
<ul class="nav nav-tabs list-group">
    <li class="active"><a href="javascript:void(0);">论文列表</a></li>
    <li><a href="{:url('admin/paper/show')}">查看论文</a></li>
</ul>
<section class="panel panel-default">
    <header class="panel-heading"> 数据列表：{$data->total()}篇论文</header>
    <div class="wrapper">
        <form  class="form-inline" role="form" action="{:url('admin/paper/index')}" method="post">
            <div class="form-group">
                <div class="select">
                    <select name="meeting_id" class="input-sm form-control">
                        <option value="">- 会议 -</option>
                        {foreach name='meetings' item='vo'}
                            {if condition="isset($_REQUEST.meeting_id) && $_REQUEST.meeting_id == $vo.id"}
                                <option value="{$vo.id}" selected="selected">{$vo.name}</option>
                            {else /}
                                <option value="{$vo.id}">{$vo.name}</option>
                            {/if}
                        {/foreach}
                    </select>
                </div>
            </div>
            <div class="form-group">
                <div class="select">
                    <select name="type" class="input-sm form-control">
                        <option value="">- 类型 -</option>
                        {if condition="isset($_REQUEST.type) && $_REQUEST.type ==='paper'"}
                            <option value="paper" selected="selected">paper</option>
                        {else /}
                            <option value="paper">paper</option>
                        {/if}
                        {if condition="isset($_REQUEST.type) && $_REQUEST.type ==='gsic'"}
                            <option value="gsic" selected="selected">gsic</option>
                        {else /}
                            <option value="gsic">gsic</option>
                        {/if}
                    </select>
                </div>
            </div>
            <div class="form-group">
                <div class="input-group">
                    <input type="text" class="input-sm form-control" name="keywords" value="" placeholder="搜索条件名字">
                    <span class="input-group-btn">
                        <button type="submit" class="btn btn-sm btn-default">搜索</button>
                    </span>
                </div>
            </div>
        </form>
    </div>
    <div class="table-responsive">
        <table class="table table-striped table-hover b-t b-light text-sm">
            <thead>
            <tr>
                <th width="8%">编号</th>
                <th>确认码</th>
                <th>类型</th>
                <th>名字</th>
                <th>组织/机构</th>
                <th>邮箱</th>
            </tr>
            </thead>
            <tbody>
            {foreach name='data' item='vo'}
            <tr>
                <td class="v-middle">{$vo.id}</td>
                <td class="v-middle">{$vo.confirmation_no}</td>
                <td class="v-middle">{$vo.type}</td>
                <td class="v-middle">{$vo.name}</td>
                <td class="v-middle">{$vo.organization}</td>
                <td class="v-middle">{$vo.email}</td>
            </tr>
            {/foreach}
            </tbody>
        </table>
    </div>
    <footer class="panel-footer">
        <div class="row">
            <div class="col-sm-12 text-right text-center-xs">
                {$data->render()}
            </div>
        </div>
    </footer>
</section>
{/block}